package com.edu.chat.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.chat.web.common.model.R;
import com.edu.chat.web.controller.vo.LibraryVO;
import com.edu.chat.web.controller.vo.PageQuery;
import com.edu.chat.web.dto.LibraryInfoDTO;
import com.edu.chat.web.dto.PageResult;
import com.edu.chat.web.model.CsLibrary;

import java.util.List;

/**
* @author 86177
* @description 针对表【cs_library(图书馆信息表)】的数据库操作Service
* @createDate 2025-02-22 15:02:27
*/
public interface CsLibraryService extends IService<CsLibrary> {

	//新建知识库
	R<Boolean> createLibrary(LibraryVO libraryVO);

	//分页查询知识库

	PageResult<LibraryInfoDTO> listLibrary(PageQuery<LibraryVO> pageQuery);

	//更新知识库开关
	R<Boolean> updateLibraryEnable(String libraryId);

	//更新知识库
	R<Boolean> updateLibrary(LibraryVO libraryVO);

	//删除知识库
	R<Boolean> deleteLibrary(String libraryId);

	//根据id集合批量查询知识库
	List<LibraryInfoDTO> listLibraryByIds(List<String> libraryIds);

}
